 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 04.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 * 				 
 */
package com.skt.common_hr.main.controller
{
	import com.skt.common_hr.main.model.*;
	import com.skt.common_hr.main.view.*;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	public class StartupCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(note:INotification):void
		{
			facade.registerProxy(new MyInfoProxy());
			
			
			var app:eHRMain = note.getBody() as eHRMain;
			facade.registerProxy(new NoticeProxy());
			facade.registerProxy(new AnniverProxy());

			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new MainMediator(app));
			facade.registerMediator(new HomeMediator(app.home));
			facade.registerMediator(new StatusMediator(app));
			facade.registerProxy(new MyApprovalProxy());
			facade.registerProxy(new CountryProxy());
			facade.registerProxy(new SiteLinkProxy());
			/*
			
			//facade.registerCommand(ApplicationFacade.SELECTED_MENU, MenuCommand);
			facade.registerProxy(new MyInfoProxy());
			facade.registerProxy(new NoticeProxy());
			facade.registerProxy(new AnniverProxy());
			
			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new MainMediator(app));
			facade.registerMediator(new HomeMediator(app.home));
			*/
		}
	}
}